//
//  ByRegisterModelUser.m
//  oc_knowledge
//
//  Created by justiOS on 17/1/11.
//  Copyright © 2017年 com.itboye. All rights reserved.
//

#import "ByModelUser.h"

@implementation ByModelUser
- (void)setAttributes:(NSDictionary *)jsonDic {
    
    [super setAttributes:jsonDic];
    NSString *headStr = jsonDic[@"head"];
    if (headStr.length != 0) {
        _head = BOYE_IMAGE_URL_ORIGINAL(jsonDic[@"head"]);
    }
//    _account_id = jsonDic[@"roles_info"]
    NSDictionary *dic = jsonDic[@"roles_info"][0];
    _account_id = [dic objectForKey:@"account_id"];
    NSLog(@"%@",[dic objectForKey:@"account_id"]);
}

@end
